package com.enjoy.cap9.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.enjoy.cap9.dao.TestDao;

@Service
public class TestService {
	
	@Qualifier("testDao")//指定名称来加载
	@Autowired
	private TestDao testDao;
	
	
	public void pringln() {
		System.out.println("Service...dao...."+testDao);
	}
}
